package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-05-22 09:04:48.892
 */
@Entity
@Table(name = "WF",catalog = "wfdb")
public class Wf implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF";

    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**流程编码 */
	public static final String ALIAS_FLOW_CODE = "FLOW_CODE";
    /**流程名 */
	public static final String ALIAS_FLOW_NAME = "FLOW_NAME";
    /**状态:1 当前 0 历史 */
	public static final String ALIAS_STATE = "STATE";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
    /**版本号 */
	public static final String ALIAS_FLOW_VERSION = "FLOW_VERSION";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "FLOW_ID", unique = true, nullable = false)
    public java.lang.Long flowId;
  
 	@Column(name = "FLOW_CODE")
    public java.lang.String flowCode;
  
 	@Column(name = "FLOW_NAME")
    public java.lang.String flowName;
  
 	@Column(name = "STATE")
    public java.lang.Long state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  
 	@Column(name = "FLOW_VERSION")
    public java.lang.String flowVersion;
  





	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getFlowCode() {
		return this.flowCode;
	}
	
	public void setFlowCode(java.lang.String value) {
		this.flowCode = value;
	}

	public java.lang.String getFlowName() {
		return this.flowName;
	}
	
	public void setFlowName(java.lang.String value) {
		this.flowName = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.lang.String getFlowVersion() {
		return this.flowVersion;
	}
	
	public void setFlowVersion(java.lang.String value) {
		this.flowVersion = value;
	}


	
	public Wf() {
	}
	
	public Wf(boolean qryflag) {
	    if(qryflag){
	    		this.flowId = null;
				this.flowCode = null;
				this.flowName = null;
				this.state = null;
				this.createTime = null;
				this.flowVersion = null;
			    }
	}


	public Wf(
	    java.lang.Long inFlowId,
	    java.lang.String inFlowCode,
	    java.lang.String inFlowName,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
		java.lang.String inFlowVersion
	 ) {
		super();
				this.flowId = inFlowId;
				this.flowCode = inFlowCode;
				this.flowName = inFlowName;
				this.state = inState;
				this.createTime = inCreateTime;
				this.flowVersion = inFlowVersion;
			}





}

